package com.example.foodie;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

public class UserSettingActivity extends Activity {
	private Button main_index_btn = null;
	private Button main_take_photo_btn = null;
	private Button main_me_btn = null;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.user_setting);
        main_me_btn = (Button) findViewById(R.id.main_me_btn);
        main_take_photo_btn = (Button) findViewById(R.id.main_photo_btn);
        main_index_btn = (Button) findViewById(R.id.main_picture_btn);
        main_index_btn.setOnClickListener(new OnClickListener() {
			
			@Override
			public void onClick(View arg0) {
				Intent myIntent = new Intent();
				myIntent.setClass(UserSettingActivity.this, MainActivity.class);
				UserSettingActivity.this.startActivity(myIntent);
				UserSettingActivity.this.finish();
			}
		});
        main_take_photo_btn.setOnClickListener(new OnClickListener() {
			
			@Override
			public void onClick(View arg0) {
				Intent myIntent = new Intent();
				myIntent.setClass(UserSettingActivity.this, MainActivity.class);
				UserSettingActivity.this.startActivity(myIntent);
				UserSettingActivity.this.finish();
			}
		});
     
        
    }
	
}
